<!-- papers-add.html -->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:include="inc/examHeader::header">
</head>
<script type="text/javascript" src="/exam/js/papers-add.js" ></script>
	<body>
	 	<div th:include="header :: header"></div>
		<div id="addPaper">
		<form action="#" th:action="@{/paperManager/savePaper}" id="paper" method="post">
		<div class="back" onclick="location='/paperManager/papers'"><img src="../images/back.png" /></div>
		<div class="header-title">
			<span>添加试卷</span>
		</div>
		<div class="spare-a">
			<div class="save-bg"><a href="#" id="savePaper" class="spare-tj">发 布</a></div>
			<div class="spare-add">
				<ul>
					<li>
						<div class="spare-addl"><span class="star">*</span>名称：</div>
						<div class="spare-addr"><input type="text" class="spare-add-input" name="name"  id="papers-name" /></div>
					</li>
					<li>
						<div class="spare-addl"><span class="star">*</span>考试时长：</div>
						<div class="spare-addr"><input type="text" class="spare-add-input" name="totalTime" value="120" id="papers-totalTime"/></div>
					</li>
					<li id="zf" >
						<div class="spare-addl"><span class="star">*</span>总分：</div>
						<div class="spare-addr"><input type="text" class="spare-add-input" name="totalScore"  /></div>
					</li>
					<li>
						<div class="spare-addl"><span class="star">*</span>考试类型：</div>
						<div class="spare-addr">
							<select class="spare-add-select" name="examType" onchange="examT(this.value)">
								<option>考试试卷</option>
								<option>练习试卷</option>
								<option>现场考试</option>
							</select>
							<div class="select-arrow"></div>
						</div>
					</li>
					<li id="txsz">
						<div class="spare-addl"><span class="star">*</span>题型设置：</div>
						<div class="spare-addr">
							<div class="paper-list clearfix">
								<div class="paper-listl">题型：单选题</div>
								<div class="paper-listm"><label>分值：</label><input type="text" class="paper-input"  id="radioScore" name="radioScore" value="0"/></div>
								<div class="paper-listm"><label>题数：</label><input type="text" class="paper-input"  id="radioCount" name="radioCount" value="0"/></div>
							</div>
							<div class="paper-list clearfix">
								<div class="paper-listl">题型：多选题</div>
								<div class="paper-listm"><label>分值：</label><input type="text" class="paper-input"  id="checkScore" name="checkScore" value="0"/></div>
								<div class="paper-listm"><label>题数：</label><input type="text" class="paper-input"  id="checkCount" name="checkCount" value="0"/></div>
							</div>
							<div class="paper-list clearfix">
								<div class="paper-listl">题型：判断题</div>
								<div class="paper-listm"><label>分值：</label><input type="text" class="paper-input"  id="judgeScore" name="judgeScore" value="0"/></div>
								<div class="paper-listm"><label>题数：</label><input type="text" class="paper-input"  id="judgeCount" name="judgeCount" value="0"/></div>
							</div>
							<div class="paper-list clearfix">
								<div class="paper-listl">题型：填空题</div>
								<div class="paper-listm"><label>分值：</label><input type="text" class="paper-input"  id="fillScore" name="fillScore" value="0"/></div>
								<div class="paper-listm"><label>题数：</label><input type="text" class="paper-input"  id="fillCount" name="fillCount" value="0"/></div>
							</div>
							<div class="paper-list clearfix">
								<div class="paper-listl">题型：问答题</div>
								<div class="paper-listm"><label>分值：</label><input type="text" class="paper-input"  id="askScore" name="askScore" value="0" readonly="readonly"/></div>
								<div class="paper-listm"><label>题数：</label><input type="text" class="paper-input"  id="askCount" name="askCount" value="0" readonly="readonly"/></div>
								<span id="note" style="color:red;display:none">(考试试卷不含有问答题)</span>
							</div>
						</div>
					</li>
					<li id="sjjg">
						<div class="spare-addl"><span class="star">*</span>试卷结构：</div>
						<div class="spare-addr">
							<div class="spare-addr-new">
								<a href="#" id="autoPaper" class="spare-tj">自动组卷</a>
								<a href="#" id="manual-btn" class="spare-tj">手动组卷</a>
							</div>
							<div id="questions">
							
							
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
		</form>
		</div>
		<!--手动组卷显示-->
		<div id="manual-show">
			<!--返回-->
			<div class="back" onclick="hideManual()"><img src="../images/back.png" /></div>
			<div class="header-title">
				<span>手动组卷</span>
			</div>
			<div class="spare-a">
				<div class="questions-add">
					<div class="questionsa-add manual-fiexd clearfix">
						<ul>
							<li><a class="active" href="#" onclick="switchCode('单选题')" style="border-bottom-left-radius:5px;border-top-left-radius:5px">单选题</a></li>
							<li><a href="#" onclick="switchCode('多选题')">多选题</a></li>
							<li><a href="#" onclick="switchCode('判断题')">判断题</a></li>
							<li><a href="#" onclick="switchCode('填空题')">填空题</a></li>
							<li><a href="#" onclick="switchCode('问答题')" style="border-bottom-right-radius:5px;border-top-right-radius:5px">问答题</a></li>
						</ul>
					</div>
					<div class="questionsb-add"  style="display:block">
						<div class="manual-scroll srcoll-documentation" id="choseq"></div>
					</div>
					<div class="questionsb-add" >
						<div class="manual-scroll srcoll-documentation" id="moreq"></div>
					</div>
					<div class="questionsb-add" >
					 	<div class="manual-scroll srcoll-documentation" id="judgeq"></div>
					</div>
					<div class="questionsb-add" >
					 	<div class="manual-scroll srcoll-documentation" id="filleq"></div>
					</div>
					<div class="questionsb-add" >
						<div class="manual-scroll srcoll-documentation" id="askq"></div>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>
